package com.zb.designmode.bridge.readthing.read.impl;

import com.zb.designmode.bridge.readthing.read.IRead;
import com.zb.designmode.bridge.readthing.stream.AbstractStream;

/**
 * <p>description：</p>
 * <p>copyright： copyright(C)2016-2099</p>
 * <p>Life is short,we need passion</p>
 * <p>Summary： </p>
 * <p>instructions： </p>
 * Date 3/16/21</p>
 * Author mac
 *
 * @version 1.0
 */
public class ImgRead implements IRead<byte[]> {

    private AbstractStream stream;

    public ImgRead(AbstractStream stream) {
        this.stream = stream;
    }

    @Override
    public byte[] read() throws Exception {
        return stream.readBytes();
    }
}
